package com.huasheng.infohub.utils;

public class FailedEmail {
	private String email;
	private String reason;
	private final int REASON_LENGTH_LIMIT=64;
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {		
		this.reason =  (reason.length()>REASON_LENGTH_LIMIT) ? reason.substring(0, REASON_LENGTH_LIMIT)+"..." : reason;		
	}
}
